package com.cysyz.mylib.excel.validator.impl;


public class CellValueValidatorImplPhoneNumber extends AbstractCellValueValidator {

	@Override
	public String validateCellInternal(String headerName, String cell,
			int rowNum, int colNum) {
		if (cell != null && !cell.matches("^1[3|4|5|8][0-9]\\d{8}$")) {
			return "第" + rowNum + "行" + colNum + "列的" + headerName + "手机号码不是一个有效的格式";
		}
		return null;
	}

}
